<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>list User</title>
    
  </head>
  
  <body>
    
    <h1>用户列表</h1>
    
    <table border="1" width="80%" align="center">
    	<tr>
    		<td align="center">序号</td>
    		<td align="center">姓名</td>
    		<td align="center">密码</td>
    		<td align="center">年龄</td>
    		<td colspan="2" align="center">操作</td>
    	</tr>
    	
    	<s:iterator value="#request.users" id="users">
    	<tr>
    		<td><s:property value="#users.id"/></td>
    		<td><s:property value="#users.username"/></td>
    		<td><s:property value="#users.password"/></td>
    		<td><s:property value="#users.age"/></td>
    		
    		<td align="right"><s:a href="deleteUser.action?user.id=%{#users.id}">删除</s:a></td>
    		<td align="right"><s:a href="getUserInfo.action?user.id=%{#users.id}">修改</s:a></td>
    	</tr>
    	</s:iterator>
    </table>
    
    <s:a href="index.jsp">返回首页</s:a>
    
  </body>
</html>
